Welcome To
Built-in
Function


Built-in Functions In Python

Built in function in python means that functions is already defined later programmer can use that functions when require . that built in functions has set of code taht is pre-defined like libraries, packages. the built in functions is immutable we can't change that pre-defined code.

The built in functions was designed for simplify the code and it make python code less memory . some predeined functions is input(), print(), int(), other

Examples

Console Input() Function

The input function is a built in function used for get the input from the user. and the input function is user information is treated as a string

When user Enter the number but it treated as a string . later we can convert into int by using int() function.

Example

X=input('please Enter your age:')

Converting str to int

x=int(input(' please enter ur age'))

Console Output(print()) Function

The output in python is displaying the result in the device. by we getting the input from the user but we want to display that data so . we using print() function

print() function displaying the result without loss of input data

Example

print(x)# input data
output: please Enter ur age: 20